from django.shortcuts import render
from django.http import HttpResponse


# Create your views here.


def index(request):
    return HttpResponse("嗨，哥们，你现在正在访问的是投票应用的首页.")


def detail(request, question_id):
    return HttpResponse("你正在查看的是问题%s." % question_id)


def results(request, question_id):
    response = "你正在查看的是问题%s的投票结果."
    return HttpResponse(response % question_id)


def vote(request, question_id):
    return HttpResponse("你正在为问题%s投票." % question_id)
